package com.dst.smart.dao.impl.factory;

import java.util.ArrayList;
import java.util.List;

import com.dst.smart.app.MyApplication;
import com.dst.smart.model.GateWay;

public class GateWayFactory {
	public static List<GateWay> list = new ArrayList<GateWay>();

	static {
		if (list.size() == 0) {
			list = MyApplication.getInstance().getWidgetDataBase().getGateWay();
		}
	}

	public static List<GateWay> getAll() {
		if (list.size() == 0) {
			list = MyApplication.getInstance().getWidgetDataBase().getGateWay();
		}
		return list;
	}

	public static void clearList() {
		list = MyApplication.getInstance().getWidgetDataBase().getGateWay();
	}


}
